import service from '@/utils/request'
// @Tags Decimal_device
// @Summary 创建医疗设备
// @Security ApiKeyAuth
// @Accept application/json
// @Produce application/json
// @Param data body model.Decimal_device true "创建医疗设备"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"创建成功"}"
// @Router /decimal_device/createDecimal_device [post]
export const createDecimal_device = (data) => {
  return service({
    url: '/decimal_device/createDecimal_device',
    method: 'post',
    data
  })
}

// @Tags Decimal_device
// @Summary 删除医疗设备
// @Security ApiKeyAuth
// @Accept application/json
// @Produce application/json
// @Param data body model.Decimal_device true "删除医疗设备"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /decimal_device/deleteDecimal_device [delete]
export const deleteDecimal_device = (params) => {
  return service({
    url: '/decimal_device/deleteDecimal_device',
    method: 'delete',
    params
  })
}

// @Tags Decimal_device
// @Summary 批量删除医疗设备
// @Security ApiKeyAuth
// @Accept application/json
// @Produce application/json
// @Param data body request.IdsReq true "批量删除医疗设备"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /decimal_device/deleteDecimal_device [delete]
export const deleteDecimal_deviceByIds = (params) => {
  return service({
    url: '/decimal_device/deleteDecimal_deviceByIds',
    method: 'delete',
    params
  })
}

// @Tags Decimal_device
// @Summary 更新医疗设备
// @Security ApiKeyAuth
// @Accept application/json
// @Produce application/json
// @Param data body model.Decimal_device true "更新医疗设备"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"更新成功"}"
// @Router /decimal_device/updateDecimal_device [put]
export const updateDecimal_device = (data) => {
  return service({
    url: '/decimal_device/updateDecimal_device',
    method: 'put',
    data
  })
}

// @Tags Decimal_device
// @Summary 用id查询医疗设备
// @Security ApiKeyAuth
// @Accept application/json
// @Produce application/json
// @Param data query model.Decimal_device true "用id查询医疗设备"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"查询成功"}"
// @Router /decimal_device/findDecimal_device [get]
export const findDecimal_device = (params) => {
  return service({
    url: '/decimal_device/findDecimal_device',
    method: 'get',
    params
  })
}

// @Tags Decimal_device
// @Summary 分页获取医疗设备列表
// @Security ApiKeyAuth
// @Accept application/json
// @Produce application/json
// @Param data query request.PageInfo true "分页获取医疗设备列表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}"
// @Router /decimal_device/getDecimal_deviceList [get]
export const getDecimal_deviceList = (params) => {
  return service({
    url: '/decimal_device/getDecimal_deviceList',
    method: 'get',
    params
  })
}

// @Tags Decimal_device
// @Summary 不需要鉴权的医疗设备接口
// @Accept application/json
// @Produce application/json
// @Param data query systemReq.Decimal_deviceSearch true "分页获取医疗设备列表"
// @Success 200 {object} response.Response{data=object,msg=string} "获取成功"
// @Router /decimal_device/getDecimal_devicePublic [get]
export const getDecimal_devicePublic = () => {
  return service({
    url: '/decimal_device/getDecimal_devicePublic',
    method: 'get',
  })
}
// UploadImage 图片上传
// @Tags Decimal_device
// @Summary 图片上传
// @Accept application/json
// @Produce application/json
// @Success 200 {object} response.Response{data=object,msg=string} "成功"
// @Router /decimal_device/uploadImage [POST]
export const uploadImage = () => {
  return service({
    url: '/decimal_device/uploadImage',
    method: 'POST'
  })
}
